//
//  ComplaintResultCell.m
//  YueYueSpecailCarDriver
//
//  Created by 李亚军 on 17/3/1.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import "ComplaintResultCell.h"
#import "ComplaintModel.h"

@implementation ComplaintResultCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.complaintContentBackView.layer.cornerRadius = 3.0;
    self.complaintContentBackView.layer.masksToBounds = YES;
}

- (void)setValueWithComplaintModel:(ComplaintModel *)complaintModel {
    
    if (complaintModel.contents) {
        self.complaintContent.text = complaintModel.contents;
    }else {
        
        self.complaintContent.text = @"";
    }
    
    if (complaintModel.status == 1) {
        
        self.complaintResult.text = @"未处理";
    }else if (complaintModel.status == 2) {
        
        self.complaintResult.text = @"正在处理";
    }else {
        
        if (complaintModel.result) {
            
            self.complaintResult.text = complaintModel.result;
        }else {
            
            self.complaintResult.text = @"";
        }
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
